From: Georges Basile Stavracas Neto Date: Mon, 18 May 2020 16:51:46 +0000 (-0300) Subject: iconGrid: Remove dead code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~375 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=693dd79d28c99e2f8268fdddc536e22dd89dc326;p=gnome-shell.git iconGrid: Remove dead code Remove unused methods from IconGrid. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1265 --- diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index 69c3fa52d..2796a6613 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -736,16 +736,6 @@ var IconGrid = GObject.registerClass({ return usedWidth + this.leftPadding + this.rightPadding; } - removeAll() { - this._items = []; - this.remove_all_children(); - } - - destroyAll() { - this._items = []; - this.destroy_all_children(); - } - addItem(item, index) { if (!(item.icon instanceof BaseIcon)) throw new Error('Only items with a BaseIcon icon property can be added to IconGrid'); @@ -761,14 +751,6 @@ var IconGrid = GObject.registerClass({ this.remove_child(item); } - getItemAtIndex(index) { - return this.get_child_at_index(index); - } - - visibleItemsCount() { - return this.get_children().filter(c => c.is_visible()).length; - } - setSpacing(spacing) { this._fixedSpacing = spacing; }